import Vue from 'vue'
import Router from 'vue-router'
//import Home from '../views/Home'
import Login from '../views/Login/index.vue'


Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      redirect: 'login'
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
      /* component: () => {
        import("../views/Login/index.vue")
      } */
    }
  ]
})


/* const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router */
